<ui:composition template="/WEB-INF/templates/main-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	<ui:define name="sidebar">
		<ui:include src="/WEB-INF/templates/public-sidebar.xhtml" />
	</ui:define>
	<ui:define name="content">
		<h:form>
		<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  
              
		<p:dialog modal="true" widgetVar="statusDialog" showHeader="false"   
		        draggable="false" closable="false">  
		    <p:graphicImage value="/resources/styles/images/ajax-loading-bar.gif" />  
		</p:dialog> 
			<h:outputText value="Leave Cron Job" styleClass="outputTextTitle" />
			
		    <h:panelGrid columns="2">
		     <h:outputLabel value="Leave balances updated successfully" />
		     <h:inputHidden value="#{leavesCronJobBean.leaveString}" />
		    </h:panelGrid>	
			
			<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  
              
			<p:dialog modal="true" widgetVar="statusDialog" header="Status"   
			        draggable="false" closable="false">  
			    <p:graphicImage value="/resources/ajax-loading-bar.gif" />  
			</p:dialog>  
						
			
				
			
		</h:form>
	</ui:define>
</ui:composition>

